package com.uinfor.service;

import com.uinfor.entity.Payment;
import com.uinfor.entity.Result;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @descripttion:
 * @Author: WZH
 * @Date :2021/1/22  10:27
 **/
@Component
@FeignClient("CLOUD-PAYMENT-SERVER")
public interface PaymentFeignService {
    @GetMapping(value = "/payment/get/{id}")
    Result<Payment> getPaymentById(@PathVariable("id")Long id);
    @GetMapping("/payment/timeout")
    String payMentFeignTimeOut();

}
